import request from '@/utils/request'

export function saveRoleAuth(roleId, codes, authIds) {
  return request({
    url: '/roleAuthority/save',
    method: 'post',
    params: { roleId, codes, authIds }
  })
}

export async function getAuthListByRoleId(roleId) {
  return request({
    url: '/roleAuthority/getListByRoleId',
    method: 'post',
    params: { roleId }
  })
}
